home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / island_fishing.swf / scripts / frame_223 / PlaceObject2_177_35 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-01-13  |  2KB  |  64 lines

  1. onClipEvent(enterFrame){
  2.    if(this.canmove <= 0)
  3.    {
  4.       this._x = _root.hook._x;
  5.       this._y = _root.hook._y;
  6.    }
  7.    if(this.hitTest(_root.rodend))
  8.    {
  9.       unloadMovie(this);
  10.       _root.guy.head.gotoAndPlay("shiver");
  11.       _root.scorepopup.score.text = "-5";
  12.       _root.scorepopup.play();
  13.       _root.score--;
  14.       _root.score--;
  15.       _root.score--;
  16.       _root.score--;
  17.       _root.score--;
  18.    }
  19.    if(this.hitTest(_root.hook))
  20.    {
  21.       if(_root.f1.hooked <= 0)
  22.       {
  23.          if(_root.f2.hooked <= 0)
  24.          {
  25.             if(_root.f3.hooked <= 0)
  26.             {
  27.                if(_root.f5.hooked <= 0)
  28.                {
  29.                   if(_root.f6.hooked <= 0)
  30.                   {
  31.                      if(_root.f7.hooked <= 0)
  32.                      {
  33.                         if(_root.f8.hooked <= 0)
  34.                         {
  35.                            if(_root.f9.hooked <= 0)
  36.                            {
  37.                               if(_root.f10.hooked <= 0)
  38.                               {
  39.                                  _root.guy.gotoAndStop(2);
  40.                                  this.hooked = 1;
  41.                                  this.canmove = 0;
  42.                                  this._x = _root.hook._x;
  43.                                  this._y = _root.hook._y;
  44.                               }
  45.                               else
  46.                               {
  47.                                  this.canmove = 1;
  48.                                  this.hooked = 0;
  49.                                  if(this._y < 160)
  50.                                  {
  51.                                     this._y = 180;
  52.                                  }
  53.                               }
  54.                            }
  55.                         }
  56.                      }
  57.                   }
  58.                }
  59.             }
  60.          }
  61.       }
  62.    }
  63. }
  64.